/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iduxs.collect;

import com.iduxs.collect.frame.system.ImageSetting;
import java.lang.reflect.Method;

/**
 *
 * @author Administrator
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Method[] ms = ImageSetting.class.getMethods();
        for (Method m : ms) {
            if (m.getName().startsWith("set")) {
                if (m.getParameterTypes()[0].equals(String.class)) {
                    System.out.println("is." + m.getName() + "(" + m.getName() + "Text.getText().trim());");
                } else {
                    System.out.println("is." + m.getName() + "(" + m.getName() + "Box.isSelected());");
                }
            }
        }

        System.out.println("\n\n------------------------------------\n\n");
        
        for (Method m : ms) {
            if (m.getName().startsWith("get")) {
                if (m.getReturnType().equals(String.class)) {
                    System.out.println(m.getName() + "Text.setText(is." + m.getName() + "());");
                } else {
                    System.out.println(m.getName() + "Box.setSelected(is." + m.getName() + "());");
                }
            }
        }

    }
}
